<!doctype html>
<head>
        <meta name="keywords" content="羽毛球，球会，球场，教练">
		<meta name="charset" content="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/jquery.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/bootstrap.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/md5.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/jquery-form.js"></script>
</head>		

		<div class="content content_hastab">	
		<div><span >课程编号: </span><span id="course_id"></span></div>
		<div><span >课程名称: </span><span id="course_name"></span></div>
        <div><span >教练ID: </span><span id="course_coach_id"></span></div>			
		<div><span >课程报名人数: </span><span id="course_student_number"></span></div>
		<div><span >课程最大报名人数: </span><span id="course_schedule_st_number"></span></div>
		<div><span >课程内容: </span<div>
		<div><textarea id="course_description" name="course_content" rows="4" cols="20" ></textarea></div>
		<div><span >课程图片: </span></div>
		<div><img id="course_picture" src="" height="150px" width="200px"></img></div>
		<div><span >课程状态: </span><span id="course_status"></span></div>
	    </div>	

<script type="text/javascript">
       
       $(function(){
		$.post('__URL__/courseDetail',{'course_id':parent.selected},function(resultList){ 			   
			  courseJson=resultList.result;
			  document.getElementById("course_id").innerHTML=courseJson.course_id;
              document.getElementById("course_name").innerHTML=courseJson.course_name;
			  document.getElementById("course_coach_id").innerHTML=courseJson.course_coach_id;
			  document.getElementById("course_student_number").innerHTML=courseJson.course_student_number;
			  document.getElementById("course_schedule_st_number").innerHTML=courseJson.course_schedule_st_number;
			  document.getElementById("course_description").innerHTML=courseJson.course_description;
			  document.getElementById("course_description").disabled = true;		 
			  document.getElementById("course_picture").src=courseJson.course_picture;
			  var status=courseJson.course_status;
			  switch(status)
			  {
			     case "0":
				 document.getElementById("course_status").innerHTML="申请";
				 break;
				 case "1":
				 document.getElementById("course_status").innerHTML="报名";
				 break;
				 case "2":
				 document.getElementById("course_status").innerHTML="进行";
				 break;
				 case "3":
				 document.getElementById("course_status").innerHTML="结束";
				 break;
			  }

			  
    	     },'json');  
			
		});
</script>